﻿using System;
using System.Collections.Generic;

namespace 多态1
{
    class Program
    {
        static void Main(string[] args)
        {
            Bird parrot = new Parrot();
            parrot.JudgeFly();
            Bird osteich = new Ostrich();
            osteich.JudgeFly();
            Bird penguin = new Penguin();
            penguin.JudgeFly();
            Bird sparrow = new Sparrow();
            sparrow.JudgeFly();
            Machine helicopter = new Helicopter();
            helicopter.JudgeFly();
            List<Bird> birds = new List<Bird>();
            birds.Add(parrot);
            birds[0].JudgeFly();


        }
    }
}
